home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / Message Dialogs / auto-popup.izs < prev    next >
Text File  |  2005-09-28  |  3KB  |  118 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Auto Popup Window 
  4. <!/TITLE>
  5.  
  6. <!DESCRIPTION> Automatically opens a small popup window and closes it after a specified time. Great for displaying important messages without forcing users to close multiple windows! 
  7. <!/DESCRIPTION> 
  8.  
  9. <!CATEGORY>Messages<!/CATEGORY>
  10.  
  11. <!SCRIPT>
  12. <!-- START OF SCRIPT -->
  13.  
  14.  
  15. <!-- HOW TO INSTALL AUTO POPUP WINDOW:
  16.  
  17.   1.  Copy code into the HEAD section of document
  18.   2.  Add the onLoad event handler into the BODY tag
  19.   3.  Put last coding into the BODY section of document  -->
  20.  
  21. <!-- STEP ONE: Add code into HEAD section of document  -->
  22.  
  23. <HEAD>
  24.  
  25. <SCRIPT LANGUAGE="JavaScript">
  26. <!-- Original:  Rick Johnson (frj11@ev1.net) -->
  27. <!-- Web Site:  http://rickjohnson.tripod.com -->
  28.  
  29. <!-- Begin
  30. function popupWin() {
  31. text =  "<html>\n<head>\n<title>Pop Window</title>\n<body>\n";
  32. text += "<center>\n<br>";
  33. text += "<a href='http://www.evrsoft.com' target='_blank'><h2>Evrsoft</h2></a>";
  34. text += "</center>\n</body>\n</html>\n";
  35. setTimeout('windowProp(text)', 3000);         // delay 3 seconds before opening
  36. }
  37. function windowProp(text) {
  38. newWindow = window.open('','newWin','width=300,height=100');
  39. newWindow.document.write(text);
  40. setTimeout('closeWin(newWindow)', 5000);    // delay 5 seconds before closing
  41. }
  42. function closeWin(newWindow) {
  43. newWindow.close();                // close small window and depart
  44. }
  45. //  End -->
  46. </script>
  47.  
  48. </HEAD>
  49.  
  50. <!-- STEP TWO: Insert the onLoad event handler into your BODY tag  -->
  51.  
  52. <BODY onLoad="popupWin()">
  53.  
  54. <!-- STEP THREE: Copy code into BODY section of document  -->
  55.  
  56. <center>
  57. This demo will open a small popup window 3 seconds after the page is loaded and close the window after it has been open for 5 seconds.
  58. </center>
  59.  
  60.  
  61. <!-- END OF SCRIPT -->
  62. <!/SCRIPT>
  63.  
  64. <!PREVIEW>
  65. <!-- START OF SCRIPT -->
  66.  
  67. <!-- HOW TO INSTALL AUTO POPUP WINDOW:
  68.  
  69.   1.  Copy code into the HEAD section of document
  70.   2.  Add the onLoad event handler into the BODY tag
  71.   3.  Put last coding into the BODY section of document  -->
  72.  
  73. <!-- STEP ONE: Add code into HEAD section of document  -->
  74.  
  75. <HEAD>
  76.  
  77. <SCRIPT LANGUAGE="JavaScript">
  78. <!-- Original:  Rick Johnson (frj11@ev1.net) -->
  79. <!-- Web Site:  http://rickjohnson.tripod.com -->
  80.  
  81. <!-- Begin
  82. function popupWin() {
  83. text =  "<html>\n<head>\n<title>Pop Window</title>\n<body>\n";
  84. text += "<center>\n<br>";
  85. text += "<a href='http://www.evrsoft.com' target='_blank'><h2>Evrsoft</h2></a>";
  86. text += "</center>\n</body>\n</html>\n";
  87. setTimeout('windowProp(text)', 3000);         // delay 3 seconds before opening
  88. }
  89. function windowProp(text) {
  90. newWindow = window.open('','newWin','width=300,height=100');
  91. newWindow.document.write(text);
  92. setTimeout('closeWin(newWindow)', 5000);    // delay 5 seconds before closing
  93. }
  94. function closeWin(newWindow) {
  95. newWindow.close();                // close small window and depart
  96. }
  97. //  End -->
  98. </script>
  99.  
  100. </HEAD>
  101.  
  102. <!-- STEP TWO: Insert the onLoad event handler into your BODY tag  -->
  103.  
  104. <BODY onLoad="popupWin()">
  105.  
  106. <!-- STEP THREE: Copy code into BODY section of document  -->
  107.  
  108. <center>
  109. This demo will open a small popup window 3 seconds after the page is loaded and close the window after it has been open for 5 seconds.
  110. </center>
  111.  
  112.  
  113.  
  114. <!-- END OF SCRIPT -->
  115. <!/PREVIEW>
  116.  
  117. <!RELATED>NONE<!/RELATED>
  118.